//
//  BBCIImageBlobDetector.h
//  BBTouch
//
//  Created by ben smith on 6/14/08.
//  This file is part of BBTouch.
//
//  BBTouch is free software: you can redistribute it and/or modify
//  it under the terms of the GNU Lesser General Public License as published by
//  the Free Software Foundation, either version 3 of the License, or
//  (at your option) any later version.

//  BBTouch is distributed in the hope that it will be useful,
//  but WITHOUT ANY WARRANTY; without even the implied warranty of
//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
//  GNU Lesser General Public License for more details.

//  You should have received a copy of the GNU Lesser General Public License
//  along with BBTouch.  If not, see <http://www.gnu.org/licenses/>.
// 
//  Copyright 2008 Ben Britten Smith ben@benbritten.com .
//


#import <Cocoa/Cocoa.h>
#import <QuartzCore/QuartzCore.h>
#import "BBBlobDetector.h"

// this will be a drop-in replacement for the blob detector to handle CIImages instead of 
// NSimages.  Since this is meant to be the 'end of line' process (ie get the blobs and toss the rest
// of the pixels away) I am going to simply implement it by 'drawing' the CIImage into a bitmap 
// and sending it to the existing blob code.
// a more complicated version would be to move the detection code into a CIFilter and perhaps produce
// some visual output in addition to the blob events (but that is later)

@interface BBCIImageBlobDetector : BBBlobDetector {
	CIImage * cibgImage;
}

@end
